package cn.liontalk.SinglePattern;


/**
 * @author ZhouZhe
 * @version 1.0
 * @description 单例模式
 * @date 2018-12-16 15:33
 **/
public class SingletonTest {

    public static void main(String[] args) {

        LazySingleton singleton = LazySingleton.getSingleton() ;

        LazySingleton singleton1 = LazySingleton.getSingleton();

        if (singleton == singleton1) {
            System.out.println("两者一样");
        } else {
            System.out.println("两者不一样");
        }

    }

}